﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace The_Manilla_Project
{
    public partial class aedit : Form
    {
        public aedit()
        {
            InitializeComponent();
        }

        private void aedit_Load(object sender, EventArgs e)
        {
            System.IO.StreamReader file = new System.IO.StreamReader(Properties.Settings.Default.pth + "\\manilla.txt");
            file.ReadLine();
            textBox1.Text = file.ReadLine();
            textBox2.Text = file.ReadLine();
            textBox3.Text = file.ReadLine();
            textBox4.Text = file.ReadLine();
            textBox5.Text = file.ReadLine();
            textBox6.Text = file.ReadLine();
            textBox7.Text = file.ReadLine();
            textBox8.Text = file.ReadLine();
            textBox9.Text = file.ReadLine();
            textBox10.Text = file.ReadLine();
            textBox11.Text = file.ReadLine();
            textBox12.Text = file.ReadLine();
            textBox13.Text = file.ReadLine();
            textBox14.Text = file.ReadLine();
        }

        private void button21_Click(object sender, EventArgs e)
        {
            System.IO.StreamReader file = new System.IO.StreamReader(Properties.Settings.Default.pth + "\\manilla.txt");
            int counter = 0;
            string[] f = new string[50];
            while (counter != 29)
            {
                f[counter] = file.ReadLine();
                counter++;
            }
            file.Close();
            f[25] = "y";
            System.IO.StreamWriter f2 = new System.IO.StreamWriter(Properties.Settings.Default.pth + "\\manilla.txt");
            int c2 = 0;
            while (c2 != 29)
            {
                f2.WriteLine(f[c2]);
                c2++;
            }
            f2.Close();
        }

        private void button22_Click(object sender, EventArgs e)
        {
            System.IO.StreamReader file = new System.IO.StreamReader(Properties.Settings.Default.pth + "\\manilla.txt");
            int counter = 0;
            string[] f = new string[50];
            while (counter != 29)
            {
                f[counter] = file.ReadLine();
                counter++;
            }
            file.Close();
            f[25] = "n";
            System.IO.StreamWriter f2 = new System.IO.StreamWriter(Properties.Settings.Default.pth + "\\manilla.txt");
            int c2 = 0;
            while (c2 != 29)
            {
                f2.WriteLine(f[c2]);
                c2++;
            }
            f2.Close();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            System.IO.StreamReader fil2 = new System.IO.StreamReader(Properties.Settings.Default.pth + "\\manilla.txt");
            fil2.Close();
            System.IO.StreamReader file = new System.IO.StreamReader(Properties.Settings.Default.pth + "\\manilla.txt");
            int counter = 0;
            string[] f = new string[50];
            while (counter != 29)
            {
                f[counter] = file.ReadLine();
                counter++;
            }
            file.Close();
            f[15] = "y";
            System.IO.StreamWriter f2 = new System.IO.StreamWriter(Properties.Settings.Default.pth + "\\manilla.txt");
            int c2 = 0;
            while (c2 != 29)
            {
                f2.WriteLine(f[c2]);
                c2++;
            }
            f2.Close();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            System.IO.StreamReader file = new System.IO.StreamReader(Properties.Settings.Default.pth + "\\manilla.txt");
            int counter = 0;
            string[] f = new string[50];
            while (counter != 29)
            {
                f[counter] = file.ReadLine();
                counter++;
            }
            file.Close();
            f[15] = "n";
            System.IO.StreamWriter f2 = new System.IO.StreamWriter(Properties.Settings.Default.pth + "\\manilla.txt");
            int c2 = 0;
            while (c2 != 29)
            {
                f2.WriteLine(f[c2]);
                c2++;
            }
            f2.Close();
        }

        private void button3_Click(object sender, EventArgs e)
        {
            System.IO.StreamReader file = new System.IO.StreamReader(Properties.Settings.Default.pth + "\\manilla.txt");
            int counter = 0;
            string[] f = new string[50];
            while (counter != 29)
            {
                f[counter] = file.ReadLine();
                counter++;
            }
            file.Close();
            f[16] = "y";
            System.IO.StreamWriter f2 = new System.IO.StreamWriter(Properties.Settings.Default.pth + "\\manilla.txt");
            int c2 = 0;
            while (c2 != 29)
            {
                f2.WriteLine(f[c2]);
                c2++;
            }
            f2.Close();
        }

        private void button4_Click(object sender, EventArgs e)
        {
            System.IO.StreamReader file = new System.IO.StreamReader(Properties.Settings.Default.pth + "\\manilla.txt");
            int counter = 0;
            string[] f = new string[50];
            while (counter != 29)
            {
                f[counter] = file.ReadLine();
                counter++;
            }
            file.Close();
            f[16] = "n";
            System.IO.StreamWriter f2 = new System.IO.StreamWriter(Properties.Settings.Default.pth + "\\manilla.txt");
            int c2 = 0;
            while (c2 != 29)
            {
                f2.WriteLine(f[c2]);
                c2++;
            }
            f2.Close();
        }

        private void button5_Click(object sender, EventArgs e)
        {
            System.IO.StreamReader file = new System.IO.StreamReader(Properties.Settings.Default.pth + "\\manilla.txt");
            int counter = 0;
            string[] f = new string[50];
            while (counter != 29)
            {
                f[counter] = file.ReadLine();
                counter++;
            }
            file.Close();
            f[17] = "y";
            System.IO.StreamWriter f2 = new System.IO.StreamWriter(Properties.Settings.Default.pth + "\\manilla.txt");
            int c2 = 0;
            while (c2 != 29)
            {
                f2.WriteLine(f[c2]);
                c2++;
            }
            f2.Close();
        }

        private void button6_Click(object sender, EventArgs e)
        {
            System.IO.StreamReader file = new System.IO.StreamReader(Properties.Settings.Default.pth + "\\manilla.txt");
            int counter = 0;
            string[] f = new string[50];
            while (counter != 29)
            {
                f[counter] = file.ReadLine();
                counter++;
            }
            file.Close();
            f[17] = "n";
            System.IO.StreamWriter f2 = new System.IO.StreamWriter(Properties.Settings.Default.pth + "\\manilla.txt");
            int c2 = 0;
            while (c2 != 29)
            {
                f2.WriteLine(f[c2]);
                c2++;
            }
            f2.Close();
        }

        private void button7_Click(object sender, EventArgs e)
        {
            System.IO.StreamReader file = new System.IO.StreamReader(Properties.Settings.Default.pth + "\\manilla.txt");
            int counter = 0;
            string[] f = new string[50];
            while (counter != 29)
            {
                f[counter] = file.ReadLine();
                counter++;
            }
            file.Close();
            f[18] = "y";
            System.IO.StreamWriter f2 = new System.IO.StreamWriter(Properties.Settings.Default.pth + "\\manilla.txt");
            int c2 = 0;
            while (c2 != 29)
            {
                f2.WriteLine(f[c2]);
                c2++;
            }
            f2.Close();
        }

        private void button8_Click(object sender, EventArgs e)
        {
            System.IO.StreamReader file = new System.IO.StreamReader(Properties.Settings.Default.pth + "\\manilla.txt");
            int counter = 0;
            string[] f = new string[50];
            while (counter != 29)
            {
                f[counter] = file.ReadLine();
                counter++;
            }
            file.Close();
            f[18] = "n";
            System.IO.StreamWriter f2 = new System.IO.StreamWriter(Properties.Settings.Default.pth + "\\manilla.txt");
            int c2 = 0;
            while (c2 != 29)
            {
                f2.WriteLine(f[c2]);
                c2++;
            }
            f2.Close();
        }

        private void button9_Click(object sender, EventArgs e)
        {
            System.IO.StreamReader file = new System.IO.StreamReader(Properties.Settings.Default.pth + "\\manilla.txt");
            int counter = 0;
            string[] f = new string[50];
            while (counter != 29)
            {
                f[counter] = file.ReadLine();
                counter++;
            }
            file.Close();
            f[19] = "y";
            System.IO.StreamWriter f2 = new System.IO.StreamWriter(Properties.Settings.Default.pth + "\\manilla.txt");
            int c2 = 0;
            while (c2 != 29)
            {
                f2.WriteLine(f[c2]);
                c2++;
            }
            f2.Close();
        }

        private void button10_Click(object sender, EventArgs e)
        {
            System.IO.StreamReader file = new System.IO.StreamReader(Properties.Settings.Default.pth + "\\manilla.txt");
            int counter = 0;
            string[] f = new string[50];
            while (counter != 29)
            {
                f[counter] = file.ReadLine();
                counter++;
            }
            file.Close();
            f[19] = "n";
            System.IO.StreamWriter f2 = new System.IO.StreamWriter(Properties.Settings.Default.pth + "\\manilla.txt");
            int c2 = 0;
            while (c2 != 29)
            {
                f2.WriteLine(f[c2]);
                c2++;
            }
            f2.Close();
        }

        private void button11_Click(object sender, EventArgs e)
        {
            System.IO.StreamReader file = new System.IO.StreamReader(Properties.Settings.Default.pth + "\\manilla.txt");
            int counter = 0;
            string[] f = new string[50];
            while (counter != 29)
            {
                f[counter] = file.ReadLine();
                counter++;
            }
            file.Close();
            f[20] = "y";
            System.IO.StreamWriter f2 = new System.IO.StreamWriter(Properties.Settings.Default.pth + "\\manilla.txt");
            int c2 = 0;
            while (c2 != 29)
            {
                f2.WriteLine(f[c2]);
                c2++;
            }
            f2.Close();
        }

        private void button12_Click(object sender, EventArgs e)
        {
            System.IO.StreamReader file = new System.IO.StreamReader(Properties.Settings.Default.pth + "\\manilla.txt");
            int counter = 0;
            string[] f = new string[50];
            while (counter != 29)
            {
                f[counter] = file.ReadLine();
                counter++;
            }
            file.Close();
            f[20] = "n";
            System.IO.StreamWriter f2 = new System.IO.StreamWriter(Properties.Settings.Default.pth + "\\manilla.txt");
            int c2 = 0;
            while (c2 != 29)
            {
                f2.WriteLine(f[c2]);
                c2++;
            }
            f2.Close();
        }

        private void button13_Click(object sender, EventArgs e)
        {
            System.IO.StreamReader file = new System.IO.StreamReader(Properties.Settings.Default.pth + "\\manilla.txt");
            int counter = 0;
            string[] f = new string[50];
            while (counter != 29)
            {
                f[counter] = file.ReadLine();
                counter++;
            }
            file.Close();
            f[21] = "y";
            System.IO.StreamWriter f2 = new System.IO.StreamWriter(Properties.Settings.Default.pth + "\\manilla.txt");
            int c2 = 0;
            while (c2 != 29)
            {
                f2.WriteLine(f[c2]);
                c2++;
            }
            f2.Close();
        }

        private void button14_Click(object sender, EventArgs e)
        {
            System.IO.StreamReader file = new System.IO.StreamReader(Properties.Settings.Default.pth + "\\manilla.txt");
            int counter = 0;
            string[] f = new string[50];
            while (counter != 29)
            {
                f[counter] = file.ReadLine();
                counter++;
            }
            file.Close();
            f[21] = "n";
            System.IO.StreamWriter f2 = new System.IO.StreamWriter(Properties.Settings.Default.pth + "\\manilla.txt");
            int c2 = 0;
            while (c2 != 29)
            {
                f2.WriteLine(f[c2]);
                c2++;
            }
            f2.Close();
        }

        private void button17_Click(object sender, EventArgs e)
        {
            System.IO.StreamReader file = new System.IO.StreamReader(Properties.Settings.Default.pth + "\\manilla.txt");
            int counter = 0;
            string[] f = new string[50];
            while (counter != 29)
            {
                f[counter] = file.ReadLine();
                counter++;
            }
            file.Close();
            f[22] = "y";
            System.IO.StreamWriter f2 = new System.IO.StreamWriter(Properties.Settings.Default.pth + "\\manilla.txt");
            int c2 = 0;
            while (c2 != 29)
            {
                f2.WriteLine(f[c2]);
                c2++;
            }
            f2.Close();
        }

        private void button18_Click(object sender, EventArgs e)
        {
            System.IO.StreamReader file = new System.IO.StreamReader(Properties.Settings.Default.pth + "\\manilla.txt");
            int counter = 0;
            string[] f = new string[50];
            while (counter != 29)
            {
                f[counter] = file.ReadLine();
                counter++;
            }
            file.Close();
            f[22] = "n";
            System.IO.StreamWriter f2 = new System.IO.StreamWriter(Properties.Settings.Default.pth + "\\manilla.txt");
            int c2 = 0;
            while (c2 != 29)
            {
                f2.WriteLine(f[c2]);
                c2++;
            }
            f2.Close();
        }

        private void button29_Click(object sender, EventArgs e)
        {
            System.IO.StreamReader file = new System.IO.StreamReader(Properties.Settings.Default.pth + "\\manilla.txt");
            int counter = 0;
            string[] f = new string[50];
            while (counter != 29)
            {
                f[counter] = file.ReadLine();
                counter++;
            }
            file.Close();
            f[23] = "y";
            System.IO.StreamWriter f2 = new System.IO.StreamWriter(Properties.Settings.Default.pth + "\\manilla.txt");
            int c2 = 0;
            while (c2 != 29)
            {
                f2.WriteLine(f[c2]);
                c2++;
            }
            f2.Close();
        }

        private void button30_Click(object sender, EventArgs e)
        {
            System.IO.StreamReader file = new System.IO.StreamReader(Properties.Settings.Default.pth + "\\manilla.txt");
            int counter = 0;
            string[] f = new string[50];
            while (counter != 29)
            {
                f[counter] = file.ReadLine();
                counter++;
            }
            file.Close();
            f[23] = "n";
            System.IO.StreamWriter f2 = new System.IO.StreamWriter(Properties.Settings.Default.pth + "\\manilla.txt");
            int c2 = 0;
            while (c2 != 29)
            {
                f2.WriteLine(f[c2]);
                c2++;
            }
            f2.Close();
        }

        private void button31_Click(object sender, EventArgs e)
        {
            System.IO.StreamReader file = new System.IO.StreamReader(Properties.Settings.Default.pth + "\\manilla.txt");
            int counter = 0;
            string[] f = new string[50];
            while (counter != 29)
            {
                f[counter] = file.ReadLine();
                counter++;
            }
            file.Close();
            f[24] = "y";
            System.IO.StreamWriter f2 = new System.IO.StreamWriter(Properties.Settings.Default.pth + "\\manilla.txt");
            int c2 = 0;
            while (c2 != 29)
            {
                f2.WriteLine(f[c2]);
                c2++;
            }
            f2.Close();
        }

        private void button32_Click(object sender, EventArgs e)
        {
            System.IO.StreamReader file = new System.IO.StreamReader(Properties.Settings.Default.pth + "\\manilla.txt");
            int counter = 0;
            string[] f = new string[50];
            while (counter != 29)
            {
                f[counter] = file.ReadLine();
                counter++;
            }
            file.Close();
            f[24] = "n";
            System.IO.StreamWriter f2 = new System.IO.StreamWriter(Properties.Settings.Default.pth + "\\manilla.txt");
            int c2 = 0;
            while (c2 != 29)
            {
                f2.WriteLine(f[c2]);
                c2++;
            }
            f2.Close();
        }

        private void button19_Click(object sender, EventArgs e)
        {
            System.IO.StreamReader file = new System.IO.StreamReader(Properties.Settings.Default.pth + "\\manilla.txt");
            int counter = 0;
            string[] f = new string[50];
            while (counter != 29)
            {
                f[counter] = file.ReadLine();
                counter++;
            }
            file.Close();
            f[25] = "y";
            System.IO.StreamWriter f2 = new System.IO.StreamWriter(Properties.Settings.Default.pth + "\\manilla.txt");
            int c2 = 0;
            while (c2 != 29)
            {
                f2.WriteLine(f[c2]);
                c2++;
            }
            f2.Close();
        }

        private void button20_Click(object sender, EventArgs e)
        {
            System.IO.StreamReader file = new System.IO.StreamReader(Properties.Settings.Default.pth + "\\manilla.txt");
            int counter = 0;
            string[] f = new string[50];
            while (counter != 29)
            {
                f[counter] = file.ReadLine();
                counter++;
            }
            file.Close();
            f[25] = "n";
            System.IO.StreamWriter f2 = new System.IO.StreamWriter(Properties.Settings.Default.pth + "\\manilla.txt");
            int c2 = 0;
            while (c2 != 29)
            {
                f2.WriteLine(f[c2]);
                c2++;
            }
            f2.Close();
        }

        private void button23_Click(object sender, EventArgs e)
        {
            System.IO.StreamReader file = new System.IO.StreamReader(Properties.Settings.Default.pth + "\\manilla.txt");
            int counter = 0;
            string[] f = new string[50];
            while (counter != 29)
            {
                f[counter] = file.ReadLine();
                counter++;
            }
            file.Close();
            f[26] = "y";
            System.IO.StreamWriter f2 = new System.IO.StreamWriter(Properties.Settings.Default.pth + "\\manilla.txt");
            int c2 = 0;
            while (c2 != 29)
            {
                f2.WriteLine(f[c2]);
                c2++;
            }
            f2.Close();
        }

        private void button24_Click(object sender, EventArgs e)
        {
            System.IO.StreamReader file = new System.IO.StreamReader(Properties.Settings.Default.pth + "\\manilla.txt");
            int counter = 0;
            string[] f = new string[50];
            while (counter != 29)
            {
                f[counter] = file.ReadLine();
                counter++;
            }
            file.Close();
            f[26] = "n";
            System.IO.StreamWriter f2 = new System.IO.StreamWriter(Properties.Settings.Default.pth + "\\manilla.txt");
            int c2 = 0;
            while (c2 != 29)
            {
                f2.WriteLine(f[c2]);
                c2++;
            }
            f2.Close();
        }

        private void button27_Click(object sender, EventArgs e)
        {
            System.IO.StreamReader file = new System.IO.StreamReader(Properties.Settings.Default.pth + "\\manilla.txt");
            int counter = 0;
            string[] f = new string[50];
            while (counter != 29)
            {
                f[counter] = file.ReadLine();
                counter++;
            }
            file.Close();
            f[27] = "y";
            System.IO.StreamWriter f2 = new System.IO.StreamWriter(Properties.Settings.Default.pth + "\\manilla.txt");
            int c2 = 0;
            while (c2 != 29)
            {
                f2.WriteLine(f[c2]);
                c2++;
            }
            f2.Close();
        }

        private void button28_Click(object sender, EventArgs e)
        {
            System.IO.StreamReader file = new System.IO.StreamReader(Properties.Settings.Default.pth + "\\manilla.txt");
            int counter = 0;
            string[] f = new string[50];
            while (counter != 29)
            {
                f[counter] = file.ReadLine();
                counter++;
            }
            file.Close();
            f[27] = "n";
            System.IO.StreamWriter f2 = new System.IO.StreamWriter(Properties.Settings.Default.pth + "\\manilla.txt");
            int c2 = 0;
            while (c2 != 29)
            {
                f2.WriteLine(f[c2]);
                c2++;
            }
            f2.Close();
        }

        private void button15_Click(object sender, EventArgs e)
        {
            System.IO.StreamReader file = new System.IO.StreamReader(Properties.Settings.Default.pth + "\\manilla.txt");
            int counter = 0;
            string[] f = new string[50];
            while (counter != 29)
            {
                f[counter] = file.ReadLine();
                counter++;
            }
            file.Close();
            f[1] = textBox1.Text;
            f[2] = textBox2.Text;
            f[3] = textBox3.Text;
            f[4] = textBox4.Text;
            f[5] = textBox5.Text;
            f[6] = textBox6.Text;
            f[7] = textBox7.Text;
            f[8] = textBox8.Text;
            f[9] = textBox9.Text;
            f[10] = textBox10.Text;
            f[11] = textBox11.Text;
            f[12] = textBox12.Text;
            f[13] = textBox13.Text;
            f[14] = textBox14.Text;
            System.IO.StreamWriter f2 = new System.IO.StreamWriter(Properties.Settings.Default.pth + "\\manilla.txt");
            int c2 = 0;
            while (c2 != 29)
            {
                f2.WriteLine(f[c2]);
                c2++;
            }
            f2.Close();
        }
    }
}
